package com.hoshiicloud.market.entity.activities;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hoshiicloud.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Author:campchen
 * @Date:Created in 下午 03:38 2019/8/23
 * @PACKAGENAME com.hoshiicloud.market.entity.activities
 * @Description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "预售促新")
public class Activities extends Model<Activities> {

    @ApiModelProperty(name = "id", value = "", example = "")
    private Long id;

    @ApiModelProperty(name = "companyId", value = "租户id", example = "")
    private Long companyId;

    @ApiModelProperty(name = "platformId", value = "平台id", example = "")
    private Long platformId;

    @ApiModelProperty(name = "storeId", value = "店铺id", example = "")
    private Long storeId;

    @ApiModelProperty(name = "name", value = "活动名称", example = "")
    private String name;

    @ApiModelProperty(name = "context", value = "活动内容", example = "")
    private String context;

    @ApiModelProperty(name = "status", value = "状态 0-已关闭 1-未关闭", example = "")
    private Integer status;

    @ApiModelProperty(name = "activitiesStatus", value = "预售活动状态 0-待开始 1-进行中 2-已结束", example = "")
    private Integer activitiesStatus;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createdTime", value = "创建时间", required = true, dataType = "java.util.Date", example = "2019-05-04 10:08:35", hidden = true)
    private LocalDateTime createdTime;

    /**
     * 创建人
     */
    @ApiModelProperty(name = "createdBy", value = "创建人", required = true, dataType = "java.lang.String", example = "admin", hidden = true)
    private String createdBy;

    /**
     * 修改时间
     */
    @ApiModelProperty(name = "updatedTime", value = "修改时间", required = true, dataType = "java.util.Date", example = "2019-05-04 10:08:35", hidden = true)
    private LocalDateTime updatedTime;

    /**
     * 修改人
     */
    @ApiModelProperty(name = "updatedBy", value = "修改人", required = true, dataType = "java.lang.String", example = "admin", hidden = true)
    private String updatedBy;

}
